package com.vim.modules.web.model;

import com.vim.common.model.base.BaseEntity;
import com.vim.common.utils.NumberTool;

import java.math.BigDecimal;

public class ShopGoods extends BaseEntity{
 
	/**商品ID*/
	private String goodsId;

	/**商品名称*/
	private String goodsName;

	/**商品标题*/
	private String goodsTitle;

	/**商品图片*/
	private String goodsImage;

	/**商品详情*/
	private String goodsBody;

	/**商品价格*/
	private BigDecimal goodsPrice;

	/**商品价格页面显示*/
	private String goodsPriceStr;

	/**商品库存*/
	private Integer goodsStock;

	/**分类ID*/
	private String classifyId;

	/**分类名称*/
	private String classifyName;

	public String getGoodsId(){
		return goodsId;
	}

	public void setGoodsId(String goodsId){
		this.goodsId = goodsId;
	}

	public String getGoodsName(){
		return goodsName;
	}

	public void setGoodsName(String goodsName){
		this.goodsName = goodsName;
	}

	public String getGoodsTitle(){
		return goodsTitle;
	}

	public void setGoodsTitle(String goodsTitle){
		this.goodsTitle = goodsTitle;
	}

	public String getGoodsImage(){
		return goodsImage;
	}

	public void setGoodsImage(String goodsImage){
		this.goodsImage = goodsImage;
	}

	public String getGoodsBody(){
		return goodsBody;
	}

	public void setGoodsBody(String goodsBody){
		this.goodsBody = goodsBody;
	}

	public BigDecimal getGoodsPrice(){
		return goodsPrice;
	}

	public void setGoodsPrice(BigDecimal goodsPrice){
		this.goodsPrice = goodsPrice;
	}

	public String getGoodsPriceStr() {
		if(null != goodsPrice){
			return NumberTool.formatToNumber(goodsPrice);
		}else{
			return NumberTool.formatToNumber(BigDecimal.ZERO);
		}
	}

	public Integer getGoodsStock() {
		return goodsStock;
	}

	public void setGoodsStock(Integer goodsStock){
		this.goodsStock = goodsStock;
	}

	public String getClassifyId(){
		return classifyId;
	}

	public void setClassifyId(String classifyId){
		this.classifyId = classifyId;
	}

	public String getClassifyName(){
		return classifyName;
	}

	public void setClassifyName(String classifyName){
		this.classifyName = classifyName;
	}

}

